﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ITJZ.BitHelper.APIModel;

namespace ITJZ.BitHelper.Local.UI.IComponent
{  
    /// <summary>
    /// 编辑知识控件接口
    /// </summary>
    public interface IEditorKnowledge
    {
        /// <summary>
        /// 正在编辑中的知识
        /// </summary>
        Knowledge CurKnowledge { get; set; }

        /// <summary>
        /// 保存知识
        /// </summary>
        event EventHandler Save;

        /// <summary>
        /// 取消编辑
        /// </summary>
        event EventHandler Close;

        /// <summary>
        /// 恢复显示状态
        /// </summary>
        void Show();

        /// <summary>
        /// 隐藏此组件
        /// </summary>
        void Hide();
    }
}
